Day 4 - Beginnings and ends
20
Exercises
There are some exercises that I can leave to you about head and tail. All exercises can be performed
on the slices.txt example file, to get an immediate feedback from the numbered lines, but if you
feel confident you can use other files as well.
Exercise 4.01
Show the first 3 entries of slices.txt
Go to solution
Exercise 4.02
Show the last 3 entries of slices.txt
Go to solution
Exercise 4.03
Show the content of slices.txt skipping the last 3 lines
Go to solution
Exercise 4.04
Show the content of slices.txt starting from line 3 (that is, skipping the first 2 lines)
Go to solution
That’s all for today. Was it complex? Was it boring? Well, I’m sorry but I can’t hear your answer, I
wrote this book some time ago. At any rate, if you think we are going to slowly you can go on freely,
the daily frequency is just a suggestion. For today, I also suggest a good cup of tea and maybe some
biscuits. Next stop, some plumbing: one of the most important things you can learn about Unix.
Suggested film for the evening: Highlander (1986) - There are many beginnings, but in the end there
will be only one.